/*
** main.c for epikong in /home/florian/nibbler/epikong/etape_1/srcs
** 
** Made by Florian Coulon
** Login   <coulon_a@epitech.net>
** 
** Started on  Sat Mar  3 05:47:23 2012 Florian Coulon
** Last update Sat Mar  3 08:29:45 2012 Florian Coulon
*/

#include	<unistd.h>
#include	<stdlib.h>
#include	<stdio.h>

#include	"epikong.h"

char	*tab_test = "wsmoi.\n\0";
int	map_param[2] = {0, 0};

int	main(int ac , char **av)
{ 
  FILE	*fd;
 
  if (ac != 2)
    exit(write(1, "USAGE : ./epikong [MAP]\n", 24));
  fd = fopen(av[1], "r");
  if (fd == NULL)
    exit(write(2, "ERROR : Failed to open\n", 23));
  if (test_map(fd) == FALSE)
    return (1);
  read_and_aff();
  return (0);
}
